<template>
	<view style="background-color: white;">
		<!-- 视频播放区域 -->
		<view>
			<video v-if="itemObj.video" class="video_view" :src="itemObj.video" controls></video>
			<swiper v-else :autoplay='true' :indicator-dots="true" style="height: 400rpx;" :current="swiperDotIndex">
				<swiper-item @click="$timer.preView($timer.strToArr(itemObj.carousel_images),index)"
					v-for="(item, index) in $timer.strToArr(itemObj.carousel_images)" :key="index+'q'">
					<image :src="item" style="width: 100%;height: 400rpx;border-radius: 8rpx;"></image>
				</swiper-item>
			</swiper>
		</view>
		<!-- end -->

		<!-- 主体 -->
		<view class="box-zhuti sb">
			<view class="flex">
				<view>
					<image mode="aspectFill" :src="$timer.ensureUrl(itemObj.avatar)"
						style="width: 100rpx;height: 100rpx;"></image>
				</view>
				<view>
					<view class="ml-20">
						<text class="fw fs-36">{{itemObj.title || '--'}}</text>
					</view>
					<view class="ml-20 mt-5">
						<text v-for="(item,index) in $timer.strToArr(itemObj.label,false)"
							class="box-type mr-10">{{item || ''}}</text>
					</view>
				</view>
			</view>
			<view @click="projectAttention(itemObj.relation)" class="flex ac jc fc mr-20">
				<view>
					<text v-if="itemObj.relation && itemObj.relation.length == 0" class="iconfont-yjgs "
						style="font-size: 52rpx;color: #FCC31F;">
						&#xe62a;
					</text>
					<text v-else class="iconfont-yjgs " style="font-size: 52rpx;color: #ACACAC;">
						&#xe62a;
					</text>
				</view>
				<view class="fs-22 mt-5">
					{{ (itemObj.relation && itemObj.relation.length) == 0 ? '关注' : '已关注'}}
				</view>
			</view>
		</view>
		<view class="pl-30 pr-20 ">
			{{itemObj.describe || '--'}}
		</view>
		<view class="pl-30 pr-20 mt-20">
			<text>合作金额</text>
			<text class="fs-38 ml-10  fw pos-r" style="top: -6rpx;color: #EC3F38;">{{itemObj.amount_min}}</text>
			<text v-if="itemObj.amount_min != itemObj.amount_max" style="top: -6rpx;color: #EC3F38;"
				class="fs-38   fw pos-r">-{{itemObj.amount_max}}</text>
			<text class="fs-22 c-red fw" style="color: #EC3F38;">万元</text>
		</view>
		<!-- end -->

		<view class="mt-30" style="height: 20rpx; width: 100%;background-color:#F7F7F7 ;">
		</view>


		<!-- 相关视频 -->
		<block v-if="itemObj.related_content">
			<view class="box-info">
				<view class="flex ac sb">
					<view>
						<text class="fw fs-36">相关视频</text>
					</view>
					<view @click="toPage('查看更多商机视频')" class="mr-20 box-more" style="width: 240rpx;">
						<text class="fs-26">查看更多商机视频</text>
						<text class="iconfont-yjgs fs-22">&#xe78f;</text>
					</view>
				</view>
			</view>

			<view class="box-video-list mt-10">
				<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120">
					<view v-for="(item,index) in 6" :key="index" class="scroll-view-item_H ">
						<view>
							<view>
								<image src="https://image.meiye.art/pic_1628404025422"
									style="width: 100%;height: 260rpx;border-radius: 8rpx;">
								</image>
							</view>
							<view class="mt-10 line-2">
								<text class="fs-32">宣传片</text>
							</view>
							<view class="mt-50 box-card-te">
								<text class="fs-32">宣传片</text>
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</block>

		<!-- end -->


		<!-- 企业信息 -->
		<block v-if="itemObj.company">
			<view class="box-info">
				<view class="flex ac sb">
					<view>
						<text class="fw fs-36">企业基本信息</text>
					</view>
					<view @click="openMore = !openMore" class="mr-20 box-more">
						<text class="fs-26">{{!openMore ? '展开更多' : '收起'}}</text>
						<text class="iconfont-yjgs fs-22">&#xe78f;</text>
					</view>
				</view>
			</view>
			<view class="box-zhuti sb">
				<view class="flex">
					<view>
						<img :src="$timer.ensureUrl(itemObj.company.logo)"
							style="width: 100rpx;height: 100rpx;border-radius: 100%;"></img>
					</view>
					<view>
						<view class="ml-20 mt-30">
							<text class="fw fs-36">{{itemObj.company.company_name || '--'}}</text>
							<text class="iconfont-yjgs ml-10 " style="color: #FF9900;">
								&#xe669;
							</text>
						</view>
						<view class="ml-20 mt-10" style="color: #999;">
							<text class="fs-28"></text>
						</view>
					</view>
				</view>
			</view>
			<view v-if="openMore">
				<view v-if='false' class="box-zhuti-info">
					<view>
						<text class="fs-32" style="color: #A5A5A5;">联系人:</text>
						<text class="fs-32 ml-20">{{itemObj.company.contacts || '--'}}</text>
					</view>
					<view class="mt-20">
						<text class="fs-32" style="color: #A5A5A5;">城市总部:</text>
						<text class="fs-32 ml-20">{{itemObj.company.headquarters || '--'}}</text>
					</view>
					<view class="mt-20">
						<text class="fs-32" style="color: #A5A5A5;">项目成立年份:</text>
						<text class="fs-32 ml-20">{{itemObj.company.year || '--'}}年</text>
					</view>
				</view>
				<!-- 项目认证 -->
				<view class="p-20 mt-20 ml-15  fs-36" style="font-weight: 550;">
					<text>企业认证信息</text>
				</view>
				<view class="flex ww ml-15">
					<view @click="preViewLicense($timer.ensureUrl(itemObj.company.license))"
						v-if="itemObj.company.license" class="flex ac p-20" style="width: 350rpx;">
						<text class="iconfont icon-xuanzhong1 " style="color:#0066FF;font-size: 46rpx;"></text>
						<text class="ml-10 mr-10 ">企业执照</text>
						<text class="iconfont-yjgs fs-32 ml-10" style="color: #0066FF;">
							&#xe600;
						</text>
					</view>
					<view v-if='itemObj.company.juridical_person == 1' class="flex ac p-20" style="width: 300rpx;">
						<text class="iconfont icon-xuanzhong1 " style="color:#0066FF;font-size: 46rpx;"></text>
						<text class="ml-10 mr-10">法人信息</text>
					</view>
					<view v-if='itemObj.company.faith == 1' class="flex ac pl-20 pr-20  ">
						<text class="iconfont icon-xuanzhong1 " style="color:#0066FF;font-size: 46rpx;"></text>
						<text class="ml-10 mr-10">诚信承诺书</text>
					</view>
					<view v-if='itemObj.company.examine == 1' class="flex ac pl-20 pr-20  " style="width: 400rpx;">
						<text class="iconfont icon-xuanzhong1 " style="color:#0066FF;font-size: 46rpx;"></text>
						<text class="ml-10 mr-10">项目实地考察认证</text>
					</view>
				</view>
				<view v-if="itemObj.company.credit_file" class="flex ml-20 mt-20 fc wfc jc ac">
					<view>
						<image show-menu-by-longpress="true" :src="itemObj.company.credit_file"
							style="width: 100rpx;height: 100rpx;"></image>
					</view>
					<view>
						<text class="iconfont fs-26"></text>
						长按查看企业信用档案
					</view>
				</view>
				<!-- end -->
			</view>
		</block>
		<!-- end -->

		<view class="mt-30" style="height: 20rpx; width: 100%;background-color:#F7F7F7 ;">
		</view>

		<!-- 项目介绍 -->
		<view class="p-20">
			<jyf-parser :tag-style="tagStyle" :html="itemObj.introduction" ref="article"></jyf-parser>
		</view>
		<!-- end -->

		<view v-if="itemObj.information" class="p-20 pl-30 box-more-file tc " style="margin-top: 60rpx;">
			<view class="mt-5">
				<text class=" fs-38 c-white">了解项目详情</text>
			</view>
			<view @click="openfile($timer.ensureUrl(itemObj.information))" class="box-btn-zl mlr ">
				免费获取更多资料
			</view>
		</view>

		<view class="mt-30" style="height: 20rpx; width: 100%;background-color:#F7F7F7 ;">
		</view>

		<!-- 贵商评论 -->
		<view class="box-info">
			<view class="flex ac sb">
				<view>
					<text class="fw fs-36">意见交流</text>
				</view>
				<view @click="toPage('分享你的高见')" class="mr-20 box-more" style="width: 90rpx;">
					<text class="fs-26">全部</text>
					<text class="iconfont-yjgs fs-22">&#xe78f;</text>
				</view>
			</view>
		</view>
		<!-- 空数据站位 -->
		<view v-if="commList.length == 0" style="margin-bottom: 30rpx;">
			<emptyPage :top="0" title='这里还空空如也，快来留下你的足迹！'>
			</emptyPage>
		</view>
		<!-- end -->
		<view @click="toPage('分享你的高见')" v-for="(item,index) in commList" :key="index" class="box-common">
			<view class="flex ac ">
				<view v-if="item.user && item.user.avatar">
					<image :src="item.user.avatar" style="border-radius: 100%;width: 80rpx;height: 80rpx;">
					</image>
				</view>
				<view v-else>
					<image src="../../../static/images/f.png" style="border-radius: 100%;width: 80rpx;height: 80rpx;">
					</image>
				</view>
				<view>
					<view class="ml-10 fw flex ac">
						<view v-if="item.company">
							<text>{{item.company.user_name || ''}}</text>
						</view>
						<view v-else>
							<text>{{item.user.nickname || ''}}</text>
						</view>
						<view v-if="item.company">
							<text class="ml-10 mr-10" style="color: #999;">/</text>
							<text style="color: #999999;">{{item.company.position || '其他'}}</text>
							<text class="iconfont-yjgs  ml-10" style="color: #FF9900;">
								&#xe669;
							</text>
						</view>
					</view>
					<view v-if="item.company" class="ml-10 ">
						<text class="fs-24" style="color: #9E9E9E;">{{item.company.name}}</text>
					</view>
				</view>
			</view>
			<view :class="true ? 'mt-20' : ''" style="margin-left: 90rpx;">
				<view>
					{{item.content || ''}}
				</view>

				<view class="flex ac mb-20">
					<view class="mt-20">
						<text style="color: #9E9E9E;">{{utilsFunc('timeToHow',item.create_time)}}</text>
					</view>
					<view class="box-coomm ml-30">
						<text>回复</text>
					</view>
				</view>

				<view v-for="(cur,_index) in item.comment" :key="_index" class="mb-40">
					<view class="mt-20 flex ac">
						<view v-if="cur.user && cur.user.avatar" class="pos-r" style="top: 6rpx;">
							<image :src="cur.user.avatar" style="border-radius: 100%;width: 65rpx;height: 65rpx;">
							</image>
						</view>
						<view v-else class="pos-r" style="top: 6rpx;">
							<image src="../../../static/images/f.png"
								style="border-radius: 100%;width: 65rpx;height: 65rpx;">
							</image>
						</view>
						<view>
							<view class="ml-10 fw flex ac">
								<view v-if="cur.company">
									<text>{{cur.company.user_name || ''}}</text>
								</view>
								<view v-else>
									<text>{{cur.user.nickname || ''}}</text>
								</view>
								<view v-if="cur.company">
									<text class="ml-10 mr-10" style="color: #999;">/</text>
									<text style="color: #999999;">{{cur.company.position || '其他'}}</text>
									<text class="iconfont-yjgs  ml-10" style="color: #FF9900;">
										&#xe669;
									</text>
								</view>
							</view>
							<view v-if="cur.company" class="ml-10 ">
								<text class="fs-24" style="color: #9E9E9E;">{{cur.company.name}}</text>
							</view>
						</view>
					</view>
					<view style="margin-left: 72rpx;">
						<view class="flex">
							<view v-if="cur.reuser" class="mt-20">
								<text>回复</text>
								<text v-if="cur.reuser.company" class="ml-10"
									style="color: #0066FF;">{{cur.reuser.company.user_name}}</text>
								<text v-else class="ml-10"
									style="color: #0066FF;">{{cur.reuser.nickname || '未知'}}</text>
								<text class="ml-5 mr-10">:</text>
							</view>
							<view class="mt-20">
								<text>{{cur.content || ''}}</text>
							</view>
						</view>
						<view class="flex ac">
							<view class="mt-20">
								<text style="color: #9E9E9E;">{{utilsFunc('timeToHow',cur.create_time)}}</text>
							</view>
							<view class="box-coomm ml-30">
								<text>回复</text>
							</view>
						</view>
					</view>
				</view>

				<view v-if="(item.count_reply - item.comment.length) > 0" class="fs-26" style="color: #9E9E9E;">
					<text>—展开{{(item.count_reply - item.comment.length) || 0}}条回复</text>
					<text class="iconfont-yjgs fs-24">
						&#xe78f;
					</text>
				</view>
			</view>
			<view class="mt-30" style="width: 100%; height: 6rpx;background-color: #F7F7F7;">
			</view>
		</view>



		<view @click="toPage('分享你的高见')" class="box-commen-send ">
			<view class="ml-30">
				<text class="iconfont icon-pinglun2" style="color: #9E9E9E;"></text>
				<text class="ml-10" style="color: #9E9E9E;">分享你的高见</text>
			</view>
			<view class="mr-30">
				<text class="iconfont-yjgs " style="color: #007EFF;font-size: 58rpx;">
					&#xe617;
				</text>
			</view>
		</view>
		<!-- end -->

		<view class="mt-30" style="height: 20rpx; width: 100%;background-color:#F7F7F7 ;">
		</view>

		<!-- 项目推荐 -->
		<view class="box-info">
			<view class="flex ac sb">
				<view>
					<text class="fw fs-38">项目推介</text>
				</view>
				<view @click="projectRecommend()" class="mr-20 fw " style="color: #0066FF;">
					<text class="iconfont icon-shuaxin fs-28 mr-10"></text>
					<text class="fs-28">换一换</text>
				</view>
			</view>
		</view>

		<view @click="toPageDesc(item)" v-for="(item,index) in recommendList" :key="item.project_id" class="mb-20">
			<view class="flex p-20 bb ml-10 ">
				<view style="flex: 1;">
					<view>
						<text class="fs-36 fw">{{item.title || ''}}</text>
					</view>
					<view class="mt-20 line-1">
						<text>{{item.describe || ''}}</text>
					</view>
					<view class="mt-20 line-1" style="color: #9B9A9C;">
						<text class="fs-24">合作金额{{item.amount_min}}</text>
						<text v-if="item.amount_min != item.amount_max" class="fs-24">-{{item.amount_max}}</text>
						<text class="fs-24">万元</text>
						<text class="ml-30 fs-26"> 意向合作{{item.intention_count || 0}}人</text>
					</view>
					<view class="mt-20 fw">
						<text v-for="(cur,_i) in $timer.strToArr(item.label,false)" :key="cur"
							class="box-card-te mr-20">{{cur || ''}}</text>
					</view>
				</view>
				<view>
					<image mode="aspectFill" :src="$timer.ensureUrl(item.recommend_cover)"
						style="width: 220rpx;height: 220rpx;border-radius: 6rpx;">
					</image>
				</view>
			</view>
			<view class="mlr" style="width: 92%;height: 6rpx;background-color: #F7F7F7;"></view>
		</view>

		<!-- end -->


		<!-- 底部高度 -->
		<view style="height: 160rpx;"></view>
		<!-- end -->

		<!-- 底部导航栏 -->
		<view class="box-bar  sb">
			<view class="flex ac">
				<view @click="phoneClick('4007180878')" class="flex ac jc fc">
					<view class="">
						<text class="iconfont-yjgs  " style="font-size: 46rpx;">
							&#xe6ea;
						</text>
					</view>
					<view>
						<text class="fs-22">电话咨询</text>
					</view>
				</view>
				<button open-type="share" hover-class="none" class="protoButton">
					<view class="flex ac jc fc ml-50">
						<view>
							<text class="iconfont-yjgs " style="font-size: 52rpx;color: #336DFF;">
								&#xe63e;
							</text>
						</view>
						<view>
							<text class="fs-22">分享</text>
						</view>
					</view>
				</button>
			</view>

			<view class="flex ac" style=" width: 66%;">
				<view @click="toPage('我要发布')" class="box-bar-btn mr-20" style="flex: 1;background-color: #00A6FF;">
					我要发布
				</view>
				<view @click="interestClick" class="box-bar-btn " style="flex: 1;">
					我要合作
				</view>
			</view>
		</view>
		<!-- end -->


		<!-- 我感觉兴趣弹窗 -->
		<popRelation @phoneClickCall='phoneClickCall("4007180878")' ref="popRelationRef"></popRelation>
		<!-- end -->


		<!-- 长安消息操作弹窗 -->
		<fui-button @cancel="fuiButtonCancel" :maskClosable='true' :show='fuiButtonShow'
			:itemList='itemList'></fui-button>
		<!-- end -->

	</view>
</template>

<script>
	import {
		getIndustryList,
		getProjectList,
		relationCreate,
		relationDelete,
		projectRecommend,
		projectCommentList,
		projectCreateIntention
	} from "@/api/extend.js"
	import {
		configMap
	} from "@/utils";
	import {
		mapGetters
	} from "vuex";
	import {
		toLogin
	} from '@/libs/login.js';
	import {
		getProjectDetails
	} from "@/api/extend.js"
	import parser from "@/components/jyf-parser/jyf-parser";
	import fuiButton from "@/pages/extend/components/fui-actionsheet/fui-actionsheet.vue"
	import popRelation from '@/pages/extend/components/popRelation/index.vue'
	import emptyPage from '@/pages/extend/components/emptyPage.vue'
	export default {
		components: {
			popRelation,
			fuiButton,
			"jyf-parser": parser,
			emptyPage
		},
		data() {
			return {
				commList: [],
				tagStyle: {
					img: 'width:100%;display:block;'
				},
				recommendList: [],
				swiperDotIndex: 0,
				itemObj: {},
				options: {},
				itemList: ['删除', '回复'],
				fuiButtonShow: false,
				openMore: false,
				isModalOpen: [{
					id: 1,
					status: false,
					url: 'https://yjgs.jsonbug.com/test/introduce.png',
					title: '品牌介绍'
				}, {
					id: 2,
					status: false,
					url: 'https://yjgs.jsonbug.com/test/support.png',
					title: '总部支持'
				}, {
					id: 3,
					status: false,
					url: 'https://yjgs.jsonbug.com/test/core.png',
					title: '核心竞争力'
				}, {
					id: 4,
					status: false,
					url: 'https://yjgs.jsonbug.com/test/manage.png',
					title: '统一管理'
				}, {
					id: 5,
					status: false,
					url: 'https://yjgs.jsonbug.com/test/finish.png',
					title: '经营成果'
				}, ],
				item: [{
					'pic': 'https://yjgs.jsonbug.com/test/yuanchao.png?e=1725267163&token=h48NexWdi4pQ_Ak4vHieme-NeoIlyx6kVurWT-rD:f4fXjeuAxXAtHCUsj3FbBJ9O1kA=',
					'name': 25432
				}]
			}
		},
		computed: configMap({}, mapGetters(['isLogin', 'uid'])),
		// #ifdef MP
		onShareAppMessage: function() {
			wx.showShareMenu({
				withShareTicket: true,
				menus: ['shareAppMessage', 'shareTimeline']
			})
			return {
				title: '项目招商',
				path: `pages/extend/project_model/index_desc?project_id=${this.options.project_id}&uid=${this.uid || -1}`,
			}
		},
		onShareTimeline: function() {
			return {
				title: '项目招商',
				query: {
					key: ''
				},
				imageUrl: ''
			}
		},
		// #endif
		onLoad(options) {
			this.options = options;
			this.getProjectDetails();
			this.projectRecommend();
			this.projectCommentList();
		},
		methods: {
			phoneClickCall(phone) {
				uni.makePhoneCall({
					phoneNumber: phone,
					success: () => {},
					fail: (err) => {}
				});
			},
			utilsFunc(tag, param) {
				if (tag == 'timeToHow') {
					return this.$timer.timeToHow(param);
				}
			},
			projectCommentList() {
				projectCommentList({
					limit: 2,
					page: 1,
					level: 1,
					project_id: this.options.project_id,
					pid: 0
				}).then(res => {
					this.commList = res.data.data;
				})
			},
			toPageDesc(item) {
				uni.redirectTo({
					url: '/pages/extend/project_model/index_desc?project_id=' + item.project_id
				})
			},

			projectRecommend() {
				projectRecommend().then(res => {
					this.recommendList = res.data;
				})
			},
			projectAttention(tag) {

				if (!this.isLogin) {
					toLogin();
					return;
				}

				if (tag.length > 0) {
					relationDelete({
						type_id: this.itemObj.project_id,
						type: 13
					}).then(res => {
						if (res.status == 200) {
							this.itemObj.relation.pop();
							uni.$emit('referProjectModel')
						}
						uni.showToast({
							title: res.message,
							icon: 'none'
						})
					});
				} else {
					relationCreate({
						type_id: this.itemObj.project_id,
						type: 13
					}).then(res => {
						if (res.status == 200) {
							this.itemObj.relation.push({})
							uni.$emit('referProjectModel')
						}
						uni.showToast({
							title: res.message,
							icon: 'none'
						})
					});
				}
			},
			openfile(url) {

				// uni.navigateTo({
				// 	url:'/pages/extend/project_model/webViewPreviewFile?file=' + url
				// })
				// return;
				uni.showLoading({
					title: '下载中...',
					mask: true
				})
				uni.downloadFile({
					url: url,
					success(res) {
						uni.hideLoading();
						if (res.statusCode == 200) {
							const filePath = res.tempFilePath;
							wx.openDocument({
								filePath: filePath,
								showMenu: true,
								success: () => {
									uni.showToast({
										title: '打开文档成功',
										icon: 'none'
									})
								},
								fail: (err) => {
									console.error('打开文档失败', err);
								}
							});
						}
					}
				})
			},
			preViewLicense(url) {
				uni.previewImage({
					urls: [url],
					current: 0
				})
			},

			getProjectDetails() {
				getProjectDetails({
					project_id: this.options.project_id
				}).then(res => {
					this.itemObj = res.data;
				})
			},
			phoneClick(phone) {
				uni.makePhoneCall({
					phoneNumber: phone,
					success: () => {},
					fail: (err) => {}
				});
			},
			shareClick() {

			},
			commonClick() {
				this.fuiButtonShow = true;
			},
			fuiButtonCancel() {
				this.fuiButtonShow = false;
			},
			interestClick() {
				if (!this.isLogin) {
					toLogin();
					return;
				}

				// 定义一个常量，表示 10 分钟的时间间隔（以毫秒为单位）
				const TEN_MINUTES = 10 * 60 * 1000;

				// 获取上次请求的时间
				const lastRequestTime = uni.getStorageSync('lastRequestTime');

				// 如果上次请求时间存在，并且距离现在的时间小于 10 分钟，则不发送请求
				if (lastRequestTime && (Date.now() - lastRequestTime < TEN_MINUTES)) {
					uni.showToast({
						title: '请求过于频繁，请10分钟后再试！',
						icon: 'none'
					});
					return;
				}

				projectCreateIntention({
					project_id: this.options.project_id
				}).then(res => {
					if (res.status == 200) {
						// 更新上次请求的时间
						uni.setStorageSync('lastRequestTime', Date.now());
						this.$refs.popRelationRef.popuplnterest('center')
					} else {
						uni.showToast({
							title: res.message,
							icon: 'none'
						})
					}
				})
			},
			toPage(tag) {
				if (tag == '查看更多商机视频') {
					uni.navigateTo({
						url: '/pages/extend/project_model/moreVideo'
					})
					return
				}
				if (tag == '我要发布') {
					// 判断是否登录
					if (!this.isLogin) {
						toLogin()
					}
					uni.navigateTo({
						url: '/pages/extend/project_model/desc_send'
					})
					return
				}
				if (tag == '分享你的高见') {
					if (!this.isLogin) {
						toLogin();
						return;
					}
					uni.navigateTo({
						url: '/pages/extend/project_model/desc_discuss?project_id=' + this.itemObj.project_id
					})
					return
				}
			},
			openModal(index) {
				this.isModalOpen[index].status = true; // 打开对应索引的模态框
			},
			closeModal(index) {
				this.isModalOpen[index].status = false; // 关闭对应索引的模态框
			}
		}
	}
</script>

<style scoped lang="scss">
	.protoButton {
		background: none;
		border: none;
		outline: none;
		padding: 0;
		margin: 0;
		font: inherit;
		color: inherit;
		cursor: pointer;
		text-align: center;
		text-decoration: none;
		display: inline-block;
	}

	.image-container {
		cursor: pointer;
		/* 鼠标指针样式 */
	}

	.image-container img {
		width: 100%;
		/* 初始宽度100% */
		max-width: 300px;
		/* 设置最大宽度 */
	}

	.modal {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.8);
		/* 半透明背景 */
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 1000;
		/* 确保模态框在最上层 */
	}

	.modal-image {
		max-width: 100%;
		/* 适应屏幕宽度 */
		max-height: 90%;
		/* 适应屏幕高度 */
	}

	.box-bar-btn {
		border-radius: 8rpx;
		text-align: center;
		line-height: 80rpx;
		font-size: 30rpx;
		font-weight: 550;
		color: white;
		height: 100%;
		background-color: #0066FF;
	}

	.box-btn-zl {
		font-size: 32rpx;
		border-radius: 20rpx;
		margin-top: 20rpx;
		font-weight: bold;
		color: #101EC3;
		text-align: center;
		line-height: 80rpx;
		width: 70%;
		height: 80rpx;
		background-color: white;
	}

	.box-btn-zl:active {
		opacity: .5;
	}

	.box-more-file {
		border-radius: 10rpx;
		margin: 20rpx;
		width: 95%;
		height: 200rpx;
		background-image: url('https://yjgs.jsonbug.com/storage/default/20241017/20241017105936.png');
		background-size: 100% 100%;
	}

	.box-commen-send {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-left: auto;
		margin-right: auto;
		border-radius: 50rpx;
		width: 90%;
		height: 70rpx;
		background-color: #F7F7F7;
	}

	.box-coomm {
		padding-top: 6rpx;
		padding-bottom: 6rpx;
		font-size: 26rpx;
		margin-top: 20rpx;
		border-radius: 20rpx;
		width: fit-content;
		padding-left: 20rpx;
		padding-right: 20rpx;
		background-color: #F7F7F7;
	}

	.box-common {
		padding: 30rpx;
	}

	.box-card-te {
		color: #0066FF;
		width: fit-content;
		font-size: 24rpx;
		padding-left: 12rpx;
		padding-right: 12rpx;
		background-color: #E5EFFF;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.scroll-view-item {
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
		font-size: 36rpx;
	}

	.scroll-view-item_H {
		margin-right: 20rpx;
		border-radius: 12rpx;
		display: inline-block;
		width: 260rpx;
		height: 460rpx;
	}

	.box-video-list {
		padding-left: 30rpx;
		padding-right: 30rpx;

	}

	.box-bar-btn {
		border-radius: 8rpx;
		text-align: center;
		line-height: 80rpx;
		font-size: 30rpx;
		font-weight: 550;
		color: white;
		width: 60%;
		height: 100%;
		background-color: #0066FF;
	}

	.box-bar-btn:active {
		opacity: .5;
	}

	.box-bar {
		padding: 20rpx;
		box-sizing: border-box;
		border-top: 1px solid #F3F3F3;
		z-index: 99;
		left: 0;
		box-shadow: 1px -3px 20rpx rgba(0, 0, 0, .12), 0 0 3rpx rgba(0, 0, 0, .04);
		color: #292929;
		display: flex;
		align-items: center;
		bottom: 0;
		position: fixed;
		width: 100%;
		background-color: #FFFFFF;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx); ///兼容 IOS<11.2/
		padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx); ///兼容 IOS>11.2/
		height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
	}

	.box-zhuti-info {
		border-radius: 10rpx;
		margin-left: 20rpx;
		padding: 20rpx;
		width: 95%;
		height: auto;
		background-color: rgba(102, 102, 102, 0.1);
	}

	.box-more {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 80px;
		border-radius: 20rpx;
		border: 2rpx solid #F5F5F5;
	}

	.box-info {
		padding: 20rpx;
		padding-left: 30rpx;
	}

	.box-type {
		padding-left: 10rpx;
		padding-right: 10rpx;
		color: #3382F7;
		background-color: #E5EFFF;
		font-size: 22rpx
	}

	.box-zhuti {
		display: flex;
		padding: 20rpx;
		padding-left: 30rpx;
	}

	.video_view {
		width: 100%;
		height: 400rpx;
	}
</style>